import json

import requests


class HttpClient:
    @staticmethod
    def get_model(modleName):
        # 定义请求的URL
        url = "http://192.168.1.99:8578/modelProcessor/modelName?modelName=" + modleName

        # 发起GET请求
        response = requests.get(url)

        # 获取响应内容
        content = response.text
        return json.loads(content)['obj']
